package com.school.mapper;

import com.school.entity.GoodsCategory;
import com.school.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsCategoryMapper {
    List<GoodsCategory> findGoodsCategoryList(PageQueryUtil pageQueryUtil);

    int getTotalGoodsCategoryCount(PageQueryUtil pageQueryUtil);

    List<GoodsCategory> selectByLevelAndParentIdAndNumber(@Param("parentIds") List<Long> parentsIds,@Param("categoryLevel") int categoryLevel, @Param("number") int number);

    GoodsCategory selectById(Long categoryId);
}
